package com.project.bean;

import java.time.LocalDate;

/**
 * 设施实体类
 */
public class FacilitiesBean {
    //设施id
    private Integer id;
    //设施损坏位置
    private String damage;
    //上报时间
    private LocalDate damageDate = LocalDate.now();
    //设施问题状态
    private String damageState = "未解决";
    // 房间对象
    private RoomBean roomBean;
    public FacilitiesBean(){}

    public FacilitiesBean(String damage, Integer roomBean) {
        this.damage = damage;
        RoomBean roomBean1 = new RoomBean();
        roomBean1.setId(roomBean);
        this.roomBean=roomBean1;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDamage() {
        return damage;
    }

    public void setDamage(String damage) {
        this.damage = damage;
    }

    public LocalDate getDamageDate() {
        return damageDate;
    }

    public void setDamageDate(LocalDate damageDate) {
        this.damageDate = damageDate;
    }

    public String getDamageState() {
        return damageState;
    }

    public void setDamageState(String damageState) {
        this.damageState = damageState;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "FacilitiesBean{" +
                "id=" + id +
                ", damage='" + damage + '\'' +
                ", damageDate=" + damageDate +
                ", damageState='" + damageState + '\'' +
                ", roomBean=" + roomBean +
                "}\n";
    }
}
